import numpy as np
import matplotlib.pyplot as plt

real_x = []
real_y = []

list_x = []
list_y = []

f1 = open("in.txt",mode='r')
for line in f1.readlines():
    tmp_list = [float(i) for i in line.split()]
    list_x.append(float(tmp_list[0]))
    list_y.append(float(tmp_list[1]))
    
plt.plot(list_x, list_y, color="blue", linewidth=1.0, linestyle="-")

f2 = open("realdata.txt",mode = 'r')
tmpcnt = 0
try:
    for line in f2.readlines():
        tmp_list = line.split(' ')
        tmpcnt += 1
        if(tmp_list[0] == 'POS:'):
            # print(float(tmp_list[1]),float(tmp_list[2]))
            real_x.append(float(tmp_list[1]))
            real_y.append(float(tmp_list[2]))
except:
    print(tmpcnt)
    
    
plt.plot(real_x, real_y, color="red", linewidth=1.0, linestyle="-")

plt.show()